Release 10.1A: OpenEdge Development:
Web Services
Using WSAViewer
WSAViewer is a basic tool for viewing the SOAP messages between a given source and destination, which you determine at startup. As such, it functions as a “man in the middle” between the client and the Web service. It is useful if you are only interested in viewing the content of the SOAP request and response. The simplicity of this tool makes it handy to use when debugging 4GL Web services for which viewing the well-defined SOAP formats is the primary focus. For more information on this tool, see Chapter 7, " Testing and Debugging Progress 4GL Web Services."
Using WSAViewer with a 4GL client
To use WSAViewer with a 4GL client, you have two options:
- Change the connection parameters in your Web service
CONNECT( )method to send all SOAP messages to WSAViewer. WSAViewer then forwards them to the actual Web service.- Startup the 4GL client using the
-proxyhostand-proxyportstartup parameters to redirect the SOAP messages to WSAViewer. Specify-proxyhostusing the host name where the viewer is running (typicallylocalhost), and specify-proxyportusing the port on which WSAViewer listens for SOAP request messages (thelisten-portvalue specified for WSAViewer as shown in the following syntax).The syntax to start the viewer is the same when working with any Web service as it is when working with the OpenEdge Web Services Adapter (WSA):
The
listen-portis the port on which WSAViewer listens for SOAP request messages. Thewebservice-hostis the host name of the Web service and thewebservice-portis the host port on which the Web service listens for SOAP request messages.Suppose you enter the following command line to start the viewer to listen on
localhostat port 8080 and pass SOAP request messages to the Web service,www.stockvend.com, listening on port 80:
You might code your 4GL Web service
CONNECT( )method like this:
The
CONNECT( )method still gets the WSDL file directly fromwww.stockvend.com, but all SOAP messages go through WSAViewer on their way to the Web service and back to the client.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |